﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;

namespace ZL.CRM.CommonEntity.AccYwDetail
{
    public class WeixinMsg
    {

        /// <summary>
        ///  服务号id+"|"+微信openid
        /// </summary>
        public string Msgopenappid { get; set; }

        /// <summary>
        ///  辅助字段：CRM操作记录流水号+顺序号（用于一笔业务同时影响余额、积分）
        /// </summary>
        public string Msgdesc { get; set; }

        /// <summary>
        ///  微信推送消息类型：1-余额变动 2-积分变动 3-余额+积分变动
        /// </summary>
        public short Msgtype { get; set; }

        /// <summary>
        ///  微信推送消息内容(格式：发生时间|余额变动值|余额变动后值|积分变动值|积分变动后值)
        /// </summary>
        public string Msgcontent { get; set; }

    }
    public class WeixinMsgMapper : ClassMapper<WeixinMsg>
    {
        public WeixinMsgMapper()
        {
            Table("#WeixinMsg");
            Map(f => f.Msgopenappid).Column("Msgopenappid");
            Map(f => f.Msgdesc).Column("Msgdesc");
            Map(f => f.Msgtype).Column("Msgtype");
            Map(f => f.Msgcontent).Column("Msgcontent");

        }

    }
}
